# SELinux disabled
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
grep SELINUX=disabled /etc/selinux/config
setenforce 0

#Iptables Disabled
/etc/init.d/iptables stop
/etc/init.d/iptables stop
chkconfig iptables off
chkconfig --list|grep ipt

# Chkconfig init
LANG=en
for service in `chkconfig --list|grep "3:on"|awk '{print $1}'|grep -vE "crond|network|sshd|rsyslog"`;do chkconfig $service off;done
chkconfig --list|grep "3:on"
unset LANG

# character Init
cp /etc/sysconfig/i18n /etc/sysconfig/i18n.bak
echo 'LANG="zh_CN.UTF-8"'>/etc/sysconfig/i18n
source /etc/sysconfig/i18n
echo $LANG

# time update
yum install -y ntpdate
echo '# Time update' >> /var/spool/cron/root
echo '*/5 * * * * /usr/sbin/ntpdate time1.aliyum.com > /dev/null 2>&1' >> /var/spool/cron/root
# File limit
echo '*               -       nofile          65535 ' >>/etc/security/limits.conf
# Package init
yum install vim tree pstree wget lrzsz nload openssh-client gcc gcc-c++ cmake  -y
# Repo init
yum install -y epel-release 
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo


